package com.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.test.entity.dto.Account;
import org.apache.ibatis.annotations.*;

@Mapper
public interface AccountMapper extends BaseMapper<Account> {
    @Select("select * from account where username = #{username}")
    String findAccountByUsername(String username);
    @Insert("insert into account( username, password, authorities, email, date) values (#{username},#{password},#{authorities},#{email},#{date})")
    int insertAccount(@Param("username") String username,
                      @Param("password") String password,
                      @Param("authorities") String authorities,
                      @Param("email") String email,
                      @Param("date") java.util.Date date);


}
